package server;

/**
 * Created by IntelliJ IDEA.
 * User: Hp
 * Date: 26.05.11
 * Time: 22:52
 * To change this template use File | Settings | File Templates.
 */
public class ConsoleServer {
   public static void main(String[] args){
       int p=Integer.parseInt(args[0]);
       ServerConstants.port=p;
       ServerModel server=new ServerModel(300,300);
       ServerTCP serverTCP = new ServerTCP();
       serverTCP.setServerModel(server);
       server.setServerInterface(serverTCP);
       serverTCP.start();
   }
}
